Method and apparatus for sensing multiple voltage values from a single terminal of a power converter controller

ABSTRACT

An example controller for a power converter according to aspects of the present invention includes a switching control that switches a power switch to regulate an output of a power converter. The controller also includes a sensor coupled to receive a signal from a single terminal of the controller. The signal from the single terminal is representative of a line input voltage of the power converter during at least a portion of an on time of the power switch. The signal from the single terminal is also representative of an output voltage of the power converter during at least a portion of an off time of the power switch. The switching control is responsive to the sensor.

REFERENCE TO PRIOR APPLICATION

This application claims the benefit of U.S. Provisional Application No.60/922,133, filed Apr. 6, 2007, entitled “METHOD AND APPARATUS FORSENSING MULTIPLE VOLTAGE VALUES FROM A SINGLE TERMINAL OF A POWERCONVERTER CONTROLLER.”

This application is related to co-pending U.S. Non-Provisionalapplication Ser. No. ______, filed DATE, entitled “METHOD AND APPARATUSFOR POWER CONVERTER FAULT CONDITION DETECTION”.

BACKGROUND INFORMATION

1. Field of the Disclosure

The present invention relates generally to power converters, and morespecifically, the invention relates to sensing input and output voltagesof power converters.

2. Background

Many electrical devices such as cell phones, personal digital assistants(PDA's), laptops, etc. are powered by a source of relatively low-voltageDC power. Because power is generally delivered through a wall outlet ashigh-voltage AC power, a device, typically referred to as a powerconverter is required to transform the high-voltage AC power tolow-voltage DC power. The low-voltage DC power may be provided by thepower converter directly to the device or it may be used to charge arechargeable battery that, in turn, provides energy to the device, butwhich requires charging once stored energy is drained. Typically, thebattery is charged with a battery charger that includes a powerconverter that meets constant current and constant voltage requirementsrequired by the battery. In operation, a power converter may use acontroller to regulate output power delivered to an electrical device,such as a battery, that may be generally referred to as a load. Morespecifically, the controller may be coupled to a sensor that providesfeedback information of the output of the power converter in order toregulate power delivered to the load. The controller regulates power tothe load by controlling a power switch to turn on and off in response tothe feedback information from the sensor to transfer energy pulses tothe output from a source of input power such as a power line.

Power converter control circuits may be used for a multitude of purposesand applications. There is a demand for control circuit functionalitythat can provide all features demanded for the application whilereducing the number of components outside the integrated controlcircuit. This reduction in external component count enablesminiaturization of the power converter to improve portability, reducesthe number of design cycles required to finalize a power converterdesign and also improves reliability of the end product. Furthermore,reduced component count can offer energy efficiency improvements in theoperation of the power converter and can reduce the power convertercost. Some example additional features that improve on regulation anddetect additional fault conditions in the power converter rely onsensing an input line voltage. In some cases, sensing an input linevoltage may be necessary in order to meet customer requirements.However, known circuits that sense an input line voltage add componentsexternal to the controller. An integrated solution would eliminatediscrete components needed to sense the input line voltage, but in somecases integrating a circuit that senses an input line voltage may resultin the need for additional terminals, which may increase the size, costand complexity of the integrated controller.

BRIEF DESCRIPTION OF THE DRAWINGS

Non-limiting and non-exhaustive examples of the present invention aredescribed with reference to the following figures, wherein likereference numerals refer to like parts throughout the various viewsunless otherwise specified.

FIG. 1 is a schematic illustrating generally an example power converterincluding a controller in accordance with the teachings of the presentinvention.

FIG. 2 is a functional block diagram illustrating generally an examplecontroller in accordance with the teachings of the present invention.

FIG. 3 is a schematic illustrating an example sensor in accordance withthe teachings of the present invention.

FIG. 4 illustrates generally example voltage waveforms and clock signalsassociated with an example sensor in accordance with the teachings ofthe present invention.

FIG. 5 is a flow chart illustrating generally an example a method forsensing an output voltage and an input line voltage on the same terminalin accordance with the teachings of the present invention.

DETAILED DESCRIPTION

Examples related to sensing voltages in power converters are disclosed.In the following description, numerous specific details are set forth inorder to provide a thorough understanding of the present invention. Itwill be apparent, however, to one having ordinary skill in the art thatthe specific detail need not be employed to practice the presentinvention. Well-known methods related to the implementation have notbeen described in detail in order to avoid obscuring the presentinvention.

Reference throughout this specification to “one embodiment,” “anembodiment,” “one example” or “an example” means that a particularfeature, structure or characteristic described in connection with theembodiment is included in at least one embodiment or example of thepresent invention. Thus, the appearances of the phrases “in oneembodiment,” “in an embodiment,” “in one example” or “in an example” invarious places throughout this specification are not necessarily allreferring to the same embodiment. The particular features, structures orcharacteristics may be combined for example into any suitablecombinations and/or sub-combinations in one or more embodiments orexamples.

As will be discussed, example integrated controllers for powerconverters that include a sensing circuit that senses input line voltageand output voltage from the same terminal are disclosed in accordancewith the teachings of the present invention. Examples of the disclosedpower converters and methods may be used in a variety of applications inwhich the output voltage is regulated by a controller in response tosensed input line voltage and output voltage.

To illustrate, FIG. 1 is a schematic showing generally an example of apower converter 100, also referred to as a power supply, including acontroller 102 in accordance with the teachings of the presentinvention. In one example, controller 102 may be included in anintegrated circuit. As shown, the power supply 100 receives DC currentat input 104, which in the illustrated example is coupled to anunregulated input line voltage V_(LINE) 105. An energy transfer element116 galvanically isolates input 104 from output terminals 118, which inthe example corresponds with an output voltage V_(OUT) 120. With input104 galvanically isolated from output terminals 118 by energy transferelement 116, there is no DC current path to allow current to flow fromthe input side to the output side of the power converter 100. In oneexample, energy transfer element 116 includes an input winding 122 andan output winding 124. An “input winding” may also be referred to as a“primary winding” and an “output winding” may also be referred to as a“secondary winding.” As shown, a clamp circuit 126 is coupled to inputwinding 122 of energy transfer element 116 to limit the maximum voltageacross controller 102. In one example, the clamp circuit 126 may includea resistor 128, a capacitor 130, and a rectifier 131.

As shown in the depicted example, controller 102 includes power switch132 coupled between a first terminal 133 and second terminal 134 coupledto an input return 129. In one example, the input return 129 and anoutput return 149 may be coupled.

In one example, first terminal 133 may be referred to as a “drainterminal” and second terminal 134 may be referred to as a “sourceterminal.” Power switch 132 is coupled to control the transfer of energythrough the energy transfer element 116 from input terminals 104 to theoutput terminals 118 to regulate an output of power supply 100 byswitching the power switch 132 between an on state and an off state.More specifically, when power switch 132 is on, a switch currentI_(SWITCH) 135 flows through the input winding 122 and when power switch132 is off, switch current I_(SWITCH) 135 is substantially preventedfrom flowing through power switch 132. In one example, power switch 132is a transistor, such as for example a high voltage metal oxidesemiconductor field effect transistor (MOSFET). It is noted in theexample illustrated in FIG. 1, power switch 132 is included withincontroller 102. For instance, in one example, controller 102 is amonolithic integrated circuit including power switch 132. In the exampleof FIG. 2, however, power switch 132 may instead be a discrete externaldevice coupled to and controlled by controller 102 or may be a discreteswitch packaged with an integrated controller in a hybrid device. Inother various examples, controller 102 may include features to employany of a variety of control methods including, but not limited to,ON/OFF control, ON/OFF control with varying current limit levels, pulsewidth modulation (PWM), or the like.

As shown, the energy transfer element 116 further includes an auxiliarywinding 136 that provides a reflected voltage V_(REFLECT) 138, which maybe representative of input line voltage V_(LINE) 105 when switch currentI_(SWITCH) 135 is flowing through input winding, and representative ofoutput voltage V_(OUT) 120 when a secondary current I_(SECONDARY) 137 isflowing through output winding 124. In one example, reflected voltageV_(REFLECT) 138 may be representative of an input line voltage V_(LINE)105 during at least a portion of the time of when the power switch 132is on, and representative of output voltage V_(OUT) 120 during at leasta portion of the time when the power switch 132 is off. In operation,when the power switch 132 is on, switch current I_(SWITCH) 135 isenabled to flow through the input winding 122 allowing for the reflectedvoltage V_(REFLECT) 138 to represent a voltage that is proportional tothe input line voltage V_(LINE) 105. The reflected voltage V_(REFLECT)138 may be proportional to the input line voltage V_(LINE) 105 by thesame proportion of the number of turns in auxiliary winding 136 tonumber of turns in input winding 122. An example relationship thatexists between the turns ratio and voltage ratio is shown below:

$\begin{matrix}{\frac{V_{REFLECT}}{V_{LINE}} = \frac{N_{A}}{N_{I}}} & (1)\end{matrix}$

where N_(A) is the number of turns on auxiliary winding 136 and N_(I) isthe number of turns on input winding 122. When power switch 132transitions from an on state to an off state, switch current I_(SWITCH)135 is substantially prevented from flowing through power switch 132 andthe energy stored in input winding 122 is transferred to output winding124 allowing the reflected voltage V_(REFLECT) 138 to represent avoltage that is proportional to the output voltage V_(OUT) 120. Thereflected voltage V_(REFLECT) 138 may be proportional to the outputvoltage V_(OUT) 120 by the same proportion of the number of turns inauxiliary winding 136 to the number of turns in output winding 124. Anexample relationship that may exist between the turns ratio and thevoltage ratio is shown below:

$\begin{matrix}{\frac{V_{REFLECT}}{V_{OUT} + V_{F}} = \frac{N_{A}}{N_{O}}} & (2)\end{matrix}$

where N_(A) is the number of turns on auxiliary winding 136, N_(O) isthe number of turns on output winding 124, and V_(F) is the voltageacross the rectifier 152 when it is forward biased. When V_(F) isnegligible with respect to V_(OUT), the expression may be simplified to

$\begin{matrix}{\frac{V_{REFLECT}}{V_{OUT}} \approx \frac{N_{A}}{N_{O}}} & (3)\end{matrix}$

Continuing with the example shown in FIG. 1, auxiliary winding 136 iscoupled to a voltage divider that includes first and second resistors140 and 142 such that a feedback terminal 144 is coupled to a nodebetween first and second resistors 140 and 142. In one example, valuesfor first and second resistors 140 and 142 may be chosen based on thedesired output voltage V_(OUT) 120. A feedback signal 146 is received bycontroller 102 and is representative of the reflected input line voltagewhen power switch 132 is on, and representative of the reflected outputline voltage when power switch 132 is off. As shown, a bypass terminal148 is coupled to a bypass capacitor 150. In operation, controller 102produces pulsating currents in the rectifier 152, which in theillustrated example includes a diode that is filtered by capacitor 154to produce the substantially constant output voltage V_(OUT) 120.

FIG. 2 is a functional block diagram further illustrating examplecontroller 102 of FIG. 1 in accordance with the teachings of the presentinvention. As shown, a sensor 202 outputs a sample input line voltagesignal 204 and a sample output voltage signal 206 in response tofeedback signal 146. More specifically, when power switch 132 is on,feedback signal 146 provides forward information representative of inputline voltage V_(LINE) 105, and when power switch 132 is off feedbacksignal 146 provides feedback information representative of outputvoltage V_(OUT) 120. Accordingly, sensor 202 outputs sample input linevoltage signal 204 when the feedback signal 146 is representative of theinput line voltage V_(LINE) 105, and outputs sample output voltagesignal 206 when feedback signal 146 is representative of the outputvoltage V_(OUT) 120. As shown, a switching control block 208 outputs adrive signal 210 that switches the power switch 132 between an on stateand an off state. Drive signal 210 is also output to sensor 202 todetermine the timing of when sensor 202 senses the reflected voltageV_(REFELCT) 138 or when sensor 202 senses the input line voltageV_(LINE) 105.

Example functions that may optionally respond to the outputs of thesensor 202 will now be described. An output regulator 212 outputs anoutput regulation signal 214 in response to the sample output voltagesignal 206. More specifically, output regulator 212 employs a particularcontrol technique to regulate output voltage V_(OUT) 120 in response tothe sample output voltage signal. For example, a control technique mayinclude ON/OFF control, pulse width modulation, or the like.

As shown in the depicted example, an optional auto restart detector 216selectively outputs an auto restart signal 218 to indicate switchingcontrol block 208 to engage in an auto restart mode. More specifically,auto restart is a mode of operation entered by controller 102 during afault condition such as, but not limited to, output overload, outputshort circuit, an open loop condition or the like. For instance, in oneexample, an auto restart mode is engaged when output voltage V_(OUT) 120is below a certain threshold voltage for a certain time. When controller102 is operating in auto restart mode, the power supply 100 operates ata reduced output voltage and reduced average output current to avoiddamage from a fault condition. During the auto restart mode, switchingis unregulated for a duration that would be long enough to raise theoutput voltage V_(OUT) 120 above an auto-restart threshold if the loadwere within specifications, followed by a relatively long interval of noswitching if the output does not reach the threshold during the allowedduration of the switching. The auto restart mode repeats this pattern ofswitching followed by an interval of no switching without manualintervention until the output voltage V_(OUT) 120 reaches theauto-restart threshold.

As shown in the depicted example, an optional constant current regulator219 outputs a constant current signal 220 to switching control block 208in response to sampled output voltage signal 206. More specifically,when power converter 100 is in a current regulation mode, the switchingcontrol block 208 regulates output current at output terminals 118.

As shown, an optional power limiter 221 is also included and is coupledto receive sample input line voltage 204 and a current sense signal 223.Power limiter 221 outputs a power limit signal 222 to switching controlblock 208. In particular, the power limiter 221 limits input power tothe power supply 100 in response to the sample input line voltage signal204 and a current sense signal 223 from a current sensor 224. In oneexample, the current sense signal 223 is generated in response to asensing of switch current I_(SWITCH) 135 in power switch 132. Any of themany known ways to measure switch current I_(SWITCH) 135, such as forexample a current transformer, or the voltage across a discreteresistor, or the voltage across a transistor when the transistor isconducting, may be implemented with current sensor 224. In theillustrated example, current sensor 224 is coupled to power switch 132at a node between power switch 132 and source terminal 134. In anotherexample, it is appreciated that current sensor 224 may be coupled at anode between power switch 132 and drain terminal 133 in accordance withthe teachings of the present invention.

As shown in the example, an optional line under voltage detector 225 isalso coupled to receive sample input line voltage signal 204 and iscoupled to output a line under voltage signal 226 to switching controlblock 208. More specifically, the line under voltage detector 225determines when the line voltage V_(LINE) 105 is under a line voltagethreshold in response to sample input line voltage signal 204.

FIG. 3 is a schematic 300 illustrating an example of sensor 202 inaccordance with the teachings of the present invention. As shown,feedback terminal 144 is coupled to provide feedback signal 146 tosensor 202. As illustrated in FIG. 4, during at least a portion of whendrive signal 210 is low, which in one example represents an off statefor power switch 132, feedback voltage V_(FB) at feedback terminal 144is representative of an output voltage V_(OUT) 120. During at least aportion of when drive signal 210 is high, which in one examplerepresents an on state for power switch 132, feedback terminal isclamped to zero volts with respect to input return 129. In anotherexample, it is appreciated that drive signal 210 may be high torepresent an off state for power switch 132.

Continuing with the example of FIG. 3, schematic 300 illustrates asensor coupled to receive feedback signal 146 to generate a sampleoutput voltage signal 206 and a sample input line voltage signal 204. Aninternal voltage supply 302 is coupled to a first current source 303that supplies current to a buffer circuit 304 that includes matchedp-channel transistors T₁ 306 and T₂ 308. As used herein, a transistormay be an n-channel or p-channel transistor. N-channel and p-channeltransistors perform complementary or opposite functions, such that asignal that causes an n-channel transistor to turn on will cause ap-channel transistor to turn off. For analog signals, a signal thatcauses an n-channel transistor to conduct more current will cause ap-channel transistor to conduct less current. An n-channel transistorrequires a positive voltage between the gate and source for thetransistor to conduct current. A p-channel transistor requires anegative voltage between the gate and source for the transistor toconduct current. An n-channel transistor substantially prevents currentflow through the n-channel transistor when the positive voltage betweenthe gate and source of the n-channel transistor is less than thetransistor's threshold voltage. As the voltage between the gate andsource of the n-channel transistor becomes greater than the transistor'sthreshold voltage, more current is permitted to flow through then-channel transistor. Conversely, the p-channel transistor substantiallyprevents current flow through the p-channel transistor when the negativevoltage between the gate and source of the p-channel transistor is lessnegative (closer to zero) than the transistor's negative thresholdvoltage. As the negative voltage between the gate and source of thep-channel transistor becomes more negative than the transistor'snegative threshold voltage, more current is permitted to flow throughthe p-channel transistor.

As shown in FIG. 3, the gate of transistor T₂ 308 is coupled to itsdrain. A second current source 310 is coupled to sink current fromtransistor T₂ 308. In operation, the voltage at the gate of transistorT₁ 306 is equal to the voltage at feedback terminal 144 with respect toinput return 129. With the configuration of matched transistors T₁ 306and T₂ 308 in the illustrated example, the voltage at the gate oftransistor T₂ 308 is substantially equal to voltage at feedback terminal144 with respect to input return 129. As shown, an n-channel transistorT₃ 313 is coupled between the gate of transistor T₂ 308 and a voltageterminal 314, which corresponds to a sampled output voltage V_(SAMPLE)315 with respect to an input return 321.

In operation, sample output voltage signal 206 is representative ofsampled output voltage V_(SAMPLE) 315 with respect to input return 321.As shown, a capacitor 316 is coupled to voltage terminal 314 such thatwhen an output clock signal CLK_(OUT) 318 is high, transistor T₃ 313 ison and allows current to flow to and from capacitor 316 to readjustsampled output voltage V_(SAMPLE) 315 to match the voltage at feedbackterminal 144. When output clock signal CLK_(OUT) 318 is low, transistorT₃ 313 is ‘off’ and capacitor 316 is prevented from charging ordischarging. In another example, it is appreciated that transistor T₃313 could be designed to be on when CLK_(OUT) 318 is low and T₃ 313could be designed to be off when CLK_(OUT) 318 is high. The output clocksignal CLK_(OUT) 318 is derived from drive signal 210. As shown in FIG.4, output clock signal CLK_(OUT) 318 is a pulsed signal that pulsesafter a time t₁ after the falling edge of drive signal 210. In otherwords, output clock signal CLK_(OUT) 318 is a pulsed signal that pulsesafter a time t₁ after power switch 132 transitions from an on state toan off state.

Referring back to the example shown in FIG. 3, sampled output voltageV_(SAMPLE) 315 is adjusted to the voltage at feedback terminal 144 whileoutput clock signal CLK_(OUT) 318 is high. More specifically, the pulseof output clock signal CLK_(OUT) 318 is high for a duration of time thatallows capacitor 316 to charge or discharge to the voltage at feedbackterminal 144 with respect to input return 129. In the example, outputsample voltage V_(SAMPLE) 315 is adjusted after the time delay t₁, whichis during the time period wherein reflected voltage V_(REFLECT) 138 isrepresentative of output voltage V_(OUT) 120.

Referring back to the example sensor 202 in FIG. 3, the internal voltagesupply 302 is coupled to a third current source 330 that suppliescurrent to n-channel transistor T₄ 332. As shown, gate of transistor T₄332 is coupled to gate of n-channel transistor T₅ 334. A p-channeltransistor T₆ 336 is coupled between internal voltage supply 302 andtransistor T₅ 334. As shown in FIG. 4, when the reflected voltageV_(REFLECT) 138 is below zero, the feedback terminal with respect toinput return 129 is clamped to approximately zero volts and a negativeinternal current I_(INT) 338 representative of the input line voltageV_(LINE) 105 flows through from auxiliary winding 136 throughtransistors T₆ 336 and T₅ 334. In one example, the internal currentI_(INT) 338 may change in magnitude in response to the reflected voltageV_(REFLECT) 138.

As shown in the depicted example, a p-channel transistor 340 T₇ iscoupled between the gate of transistor T₆ 336 and the gate of atransistor T₈ 342. A capacitor 348 is coupled between the internalvoltage supply 302 and the gate of p-channel transistor T₈ 342. Asshown, an output of an inverter 344 is coupled to the gate of transistorT₇ 340. The input of the inverter 344 is coupled to receive an inputline clock signal CLK_(LINE) 346. As shown in FIG. 4, input line clocksignal CLK_(LINE) 346 is a pulsed signal that pulses after a time t₂after the leading edge of drive signal 210. In other words, input lineclock signal CLK_(LINE) 346 is a pulsed signal that pulses after a timet₂ after a power switch 132 transitions from an off state to an onstate.

Referring back to FIG. 3, when input line clock signal CLK_(LINE) 346 ishigh, transistor T₇ 340 is on and allows current to flow to and fromcapacitor 348 to adjust the voltage at the gate of transistor T₈ 342 tomatch the voltage at the gate of transistor T₆ 336. More specifically,the pulse of input line clock signal CLK_(LINE) 346 is high for aduration of time that allows capacitor 348 to charge or discharge to thevoltage at the gate of transistor T₆ 336 with respect to input return129. The voltage at the gate of transistor T₆ 336 is determined by themagnitude of internal current I_(INT) 338. When input line clock signalCLK_(LINE) 346 is low, transistor T₇ 340 is off and substantiallyprevents current from flowing to and from capacitor 348. In anotherexample, it is appreciated that transistor T₇ 340 could be designed tobe on when CLK_(LINE) 346 is low and T₇ 340 could be designed to be offwhen CLK_(LINE) 346 is high. Since voltage at the gate of transistor T₆336 is substantially equal to the voltage at the gate of transistor 342T₈, a sample current I_(SAMPLE) 350 proportional to internal currentI_(INT) 338 will flow through transistor 342 T₈ when transistor 340 T₇is on. More specifically, the proportionality of the current I_(INT) 338to current I_(SAMPLE) 350 is based on the proportionality of the sizingof transistor T₆ 336 to transistor T₈ 342 in the illustrated example. Inoperation, I_(SAMPLE) 350 may be converted into a voltage value by usinga resistive element such as, but not limited to, a resistor and isrepresentative of sample input line voltage signal 204.

Referring back to FIG. 4, the clock signal CLK_(LINE) 346 is high aftera time delay t₂ after the power switch 132 turns on. Since auxiliarywinding 136 may not necessarily reflect input voltage accuratelyimmediately after power switch 132 turns on, a time delay t₂ occursbefore I_(SAMPLE) 350 is adjusted proportionately to internal currentI_(INT) 338.

FIG. 5 is a flow chart 500 illustrating generally an example method forsensing an output voltage and a line voltage on the same terminal of anintegrated power supply controller in accordance with the teachings ofthe present invention. Processing begins at block 505, and in block 510,power switch 132 is turned on. In block 515, a time delay t₂ occursbefore sensing reflected input line voltage in block 520. In block 525,the sample input line voltage signal 204 is output. In block 530, thepower switch 132 is turned off. In block 535, a time delay t₁ occursbefore sensing reflected output line voltage in block 540. In block 545,the sample output voltage signal 206 is output and processing iscomplete in block 550.

The above description of illustrated examples of the present invention,including what is described in the Abstract, are not intended to beexhaustive or to be limitation to the precise forms disclosed. Whilespecific embodiments of, and examples for, the invention are describedherein for illustrative purposes, various equivalent modifications arepossible without departing from the broader spirit and scope of thepresent invention. Indeed, it is appreciated that the specific voltages,currents, frequencies, power range values, times, etc., are provided forexplanation purposes and that other values may also be employed in otherembodiments and examples in accordance with the teachings of the presentinvention.

These modifications can be made to examples of the invention in light ofthe above detailed description. The terms used in the following claimsshould not be construed to limit the invention to the specificembodiments disclosed in the specification and the claims. Rather, thescope is to be determined entirely by the following claims, which are tobe construed in accordance with established doctrines of claiminterpretation. The present specification and figures are accordingly tobe regarded as illustrative rather than restrictive.

1. A controller for a power converter, comprising: a switching control that switches a power switch to regulate an output of the power converter; and a sensor coupled to receive a signal from a single terminal of the controller, the signal from the single terminal to represent a line input voltage of the power converter during at least a portion of an on time of the power switch, the signal from the single terminal to represent an output voltage of the power converter during at least a portion of an off time of the power switch, wherein the switching control is responsive to the sensor.
 2. The controller of claim 1, wherein the sensor is coupled to sample the signal from the single terminal during the portion of the off time of the power switch.
 3. The controller of claim 2, wherein the sensor is coupled to delay the sampling of the signal from the single terminal for a first time period after the power switch transitions from the on time to the off time.
 4. The controller of claim 1, wherein the sensor is coupled to sample the signal from the single terminal during the portion of the on time of the power switch.
 5. The controller of claim 4, wherein the sensor is coupled to delay the sampling of the signal from the single terminal for a second time period after the power switch transitions from the off time to the on time.
 6. The controller of claim 1, wherein the signal comprises a first signal and a second signal, wherein the first signal is a voltage that is representative of the output voltage of the power converter and wherein the second signal is a current that is representative of the line input voltage of the power converter.
 7. The controller of claim 1, wherein the controller is an integrated circuit controller for the power converter.
 8. The controller of claim 7, wherein the power switch is integrated into the integrated circuit controller.
 9. A controller for a power converter, comprising: a terminal; a switching control that switches a power switch to regulate an output of the power converter; a sensor coupled between the terminal and the switching control, the sensor coupled to sense a voltage at the terminal of the integrated controller, wherein the sensed voltage is representative of an output voltage of the power converter, and wherein the sensor is further coupled to sense a current at the terminal of the integrated controller, wherein the sensed current is representative of an input voltage of the power converter, and wherein the switching control switches the power switch in response to the sensor.
 10. The controller of claim 9, wherein the switching control switches the power switch between an on time and an off time and wherein the sensor is coupled to sample the voltage at the terminal during at least a portion of the off time of the power switch and to sample the current at the terminal during at least a portion of the on time of the power switch.
 11. The controller of claim 10, wherein the sensor is coupled to clamp the terminal to a voltage during at least the portion of the on time of the power switch.
 12. The controller of claim 9, wherein the controller is an integrated circuit controller for the power converter.
 13. The controller of claim 12, wherein the power switch is integrated into the integrated circuit controller.
 14. A controller for a power converter, comprising: a switching control that switches a power switch to regulate an output of the power converter; a sensor coupled to receive a signal from a terminal of the controller, the signal from the terminal to represent a line input voltage of the power converter during at least a portion of an on time of the power switch, the signal from the terminal to represent an output voltage of the power converter during at least a portion of an off time of the power switch, the sensor coupled to sample the signal from the terminal during the portion of the off time of the power switch and to generate a sample output voltage signal, and the sensor coupled to sample the signal from the terminal during the portion of the on time of the power switch and to generate a sample input line voltage signal; and an output regulator coupled between the sensor and the switching control, the output regulator coupled to output an output regulation signal to the switching control, wherein the switching control switches the power switch in response to the output regulation signal to regulate the output voltage of the power converter.
 15. The controller of claim 14, wherein the sensor is coupled to clamp the terminal to a voltage during at least the portion of the on time of the power switch.
 16. The controller of claim 14, further comprising a power limiter coupled between the sensor and the switching control, the power limiter coupled to output a power limit signal to the switching control to limit an input power of the power converter in response to the sample input line voltage signal.
 17. The controller of claim 14, further comprising an auto restart detector coupled between the sensor and the switching control, the auto restart detector coupled to output an auto restart signal to the switching control to indicate to the switching control to enter an auto restart mode, wherein the auto restart signal is responsive to the sample output voltage signal.
 18. The controller of claim 14, further comprising a line under voltage detector coupled between the sensor and the switching control, the line under voltage detector coupled to output a line under voltage signal to the switching control in response to the sample input line voltage signal and a line voltage threshold.
 19. The controller of claim 14, wherein the controller is an integrated circuit controller for the power converter.
 20. The controller of claim 19, wherein the power switch is integrated into the integrated circuit controller.
 21. A controller for a power converter, comprising: a switching control that switches a power switch to regulate an output of the power converter; a sensor coupled to receive a signal from one terminal of the controller, the signal from the one terminal to represent a line input voltage of the power converter during at least a portion of an on time of the power switch, the signal from the one terminal to represent an output voltage of the power converter during at least a portion of an off time of the power switch, the sensor coupled to sample the signal from the one terminal during the portion of the on time of the power switch and to generate a sample input line voltage signal and the sensor coupled to sample the signal from the one terminal during the portion of the off time of the power switch and to generate a sample output voltage signal; and a constant current regulator coupled between the sensor and the switching control, the constant current regulator coupled to output a constant current signal to the switching control to regulate an output current of the power converter in response to the sample output voltage signal.
 22. The controller of claim 21, wherein the sensor includes a capacitor to be charged to a sample voltage during at least the portion of the off time of the power switch, wherein the sample voltage is substantially representative of a voltage at the single terminal during at least the portion of the off time of the power switch.
 23. The controller of claim 22, wherein the sensor further comprises a buffer circuit coupled between the one terminal and the capacitor to mirror the voltage at the one terminal to the capacitor.
 24. The controller of claim 21, further comprising a power limiter coupled between the sensor and the switching control, the power limiter coupled to output a power limit signal to the switching control to limit an input power of the power converter in response to the sample input line voltage signal.
 25. The controller of claim 21, further comprising a line under voltage detector coupled between the sensor and the switching control, the line under voltage detector coupled to output a line under voltage signal to the switching control in response to the sample input line voltage signal and a line voltage threshold.
 26. The controller of claim 21, further comprising an auto restart detector coupled between the sensor and the switching control, the auto restart detector coupled to output an auto restart signal to the switching control to indicate to the switching control to enter an auto restart mode, wherein the auto restart signal is responsive to the sample output voltage signal.
 27. The controller of claim 21, wherein the controller is an integrated circuit controller for the power converter.
 28. The controller of claim 27, wherein the power switch is integrated into the integrated circuit controller.
 29. A controller for a power converter, comprising: a feedback terminal coupled to receive a voltage that is representative of an output voltage of the power converter when a power switch of the power converter is in an off state, the feedback terminal further coupled to receive a current that is representative of an input line voltage of the power converter when the power switch is in an on state; a sensor coupled to the feedback terminal and coupled to sample the current received at the feedback terminal during the on state of the power switch and to generate a sample input line voltage signal in response to the received current, the sensor coupled to sample the voltage received at the feedback terminal during the off state of the power switch and to generate a sample output voltage signal in response to the received voltage; and a switching control coupled to output a drive signal to control switching of the power switch between the on state and the off state to regulate an output of the power converter, wherein the switching control is responsive to the sample input line voltage signal and the sample output voltage signal.
 30. The controller of claim 29, wherein the sensor is coupled to clamp the feedback terminal to a voltage during at least a portion of time of the on state of the power switch.
 31. The controller of claim 29, wherein the power switch is integrated into the controller.
 32. The controller of claim 29, wherein the sensor samples the current received at the feedback terminal during the on state of the power switch in response to the drive signal and wherein the sensor samples the voltage received at the feedback terminal during the off state of the power switch in response to the drive signal.
 33. The controller of claim 29, wherein the sample input line voltage signal is a sample current that is substantially proportional to the received current.
 34. The controller of claim 29, wherein the controller is an integrated circuit controller for the power converter.
 35. The controller of claim 34, wherein the power switch is integrated into the integrated circuit controller. 